/* barrier.h */

#ifndef BARRIER_H_
#define BARRIER_H_

//struct binary_semaphore;

struct barrier
{
	int n;
	int counter;
	struct binary_semaphore *arrival;
	struct binary_semaphore *departure;
};

void barrier_init(struct barrier *bar, int num);
void barrier_pass(struct barrier *bar);

#endif /* BARRIER_H_ */

